-- 配方写在这里
-- recipes_filter.lua中查看分类

-- 调味粉
if TUNING.TF_SPICES == "Yes" then
    -- 金平糖
    AddRecipe2(
        "spice_tf_konpeito",
        { Ingredient("honey", 8) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 太阳炸蛋
    AddRecipe2(
        "spice_tf_sunny_side_up_egg",
        { Ingredient("tallbirdegg", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 跳跳糖
    AddRecipe2(
        "spice_tf_popping_candy",
        { Ingredient("wormlight_lesser", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 章鱼小丸子
    AddRecipe2(
        "spice_tf_takoyaki",
        { Ingredient("fishmeat_small", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 榴莲糖
    AddRecipe2(
        "spice_tf_durian_candy",
        { Ingredient("durian", 8) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 沙拉酱
    AddRecipe2(
        "spice_tf_dressing",
        { Ingredient("onion", 2, nil, nil, "quagmire_onion.tex"), Ingredient("tallbirdegg", 1) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 蛋黄酱
    AddRecipe2(
        "spice_tf_mayonnaise",
        { Ingredient("bird_egg", 2), Ingredient("tallbirdegg", 1) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 芥末酱
    AddRecipe2(
        "spice_tf_mustard",
        { Ingredient("plantmeat", 2), Ingredient("pepper", 1) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 泰式甜辣酱
    AddRecipe2(
        "spice_tf_sweet_chili_sauce",
        { Ingredient("pepper", 1), Ingredient("honey", 1) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 番茄酱
    AddRecipe2(
        "spice_tf_tomato_sauce",
        { Ingredient("tomato", 4, nil, nil, "quagmire_tomato.tex") },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 咖啡粉
    AddRecipe2(
        "spice_tf_coffee_powder",
        { Ingredient("pinecone", 5) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy1",
        { Ingredient("pinecone", 10) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 7,
            nounlock = true,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy2",
        { Ingredient("pinecone", 5) },
        TECH.CARPENTRY_TWO,
        {
            nounlock = true,
            sg_state = "give",
            numtogive = 3,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy3",
        { Ingredient("pinecone", 10) },
        TECH.CARPENTRY_TWO,
        {
            nounlock = true,
            sg_state = "give",
            numtogive = 7,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )

    -- 培根碎
    AddRecipe2(
        "spice_tf_bacon_bits",
        { Ingredient("tf_bacon", 2) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )
    AddRecipe2(
        "spice_tf_bacon_bits_copy",
        { Ingredient("tf_bacon", 2) },
        TECH.CARPENTRY_TWO,
        {
            nounlock = true,
            sg_state = "give",
            numtogive = 3,
            product = "spice_tf_bacon_bits",
            image = "spice_tf_bacon_bits.tex",
        }
    )

    -- 橘子酱
    AddRecipe2(
        "spice_tf_orange_jam",
        { Ingredient("tf_orange", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 草莓酱
    AddRecipe2(
        "spice_tf_strawberry_jam",
        { Ingredient("tf_strawberry", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 蛋白粉
    AddRecipe2(
        "spice_tf_protein_powder",
        { Ingredient("tf_milk", 4) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )

    -- 泡菜粉
    AddRecipe2(
        "spice_tf_kimchi_powder",
        { Ingredient("tf_kimchi", 3) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )
end

-- 食物制作
if TUNING.TF_BOX == "Yes" then
    -- 饭盒
    AddRecipe2(
        "tf_box",
        { Ingredient("boards", 8) }, -- 配方
        TECH.SCIENCE_TWO,
        {},
        {
            "COOKING", -- 食物分类
        }
    )
end

-- 培根
AddRecipe2(
    "tf_bacon",
    { Ingredient("smallmeat", 1) }, -- 配方
    TECH.SCIENCE_TWO,
    {},
    {
        "REFINE",  -- 精炼分类
        "COOKING", -- 食物分类
    }
)
AddRecipe2(
    "tf_bacon_copy",
    { Ingredient("meat", 1) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        numtogive = 3,
        product = "tf_bacon",
        image = "tf_bacon.tex",
    },
    {
        "REFINE",  -- 精炼分类
        "COOKING", -- 食物分类
    }
)

-- 食趣种子包
AddRecipe2(
    "tf_seedpacket",
    { Ingredient("goldnugget", 3) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        atlas = "images/inventoryimages3.xml",
        image = "yotc_seedpacket_rare.tex",
    },
    {
        "GARDENING", -- 农业分类
    }
)

-- 泡菜
AddRecipe2(
    "tf_kimchi",
    { Ingredient("tf_cabbage", 1), Ingredient("pepper", 2) }, -- 配方
    TECH.SCIENCE_TWO,
    {},
    {
        "REFINE",  -- 精炼分类
        "COOKING", -- 食物分类
    }
)

-- 武器相关
-- 泰式酸辣牛仔骨
AddRecipe2(
    "tf_cowboy_ribs",
    { Ingredient("meat", 8), Ingredient("boneshard", 4), Ingredient("twigs", 2), Ingredient("spice_tf_sweet_chili_sauce", 1) }, -- 配方
    TECH.SCIENCE_TWO,
    {},
    {
        "WEAPONS", -- 武器分类
    }
)

-- 花蝶扇
AddRecipe2(
    "tf_floral_butterfly_fan",
    { Ingredient("butterfly", 40), Ingredient("petals", 20) }, -- 配方
    TECH.SCIENCE_TWO,
    {},
    {
        "WEAPONS", -- 武器分类
    }
)

-- 建筑
-- 疾旋鼬冰箱
AddRecipe2(
    "tf_icebox_chillet",
    { Ingredient("transistor", 2), Ingredient("gears", 1), Ingredient("cutstone", 3) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_icebox_chillet_placer", -- 建造预览
        min_spacing = 1.5,                   -- 放置间隔
    },
    {
        "STRUCTURES", -- 建筑分类
        "CONTAINERS", -- 容器分类
        "COOKING",    -- 食物分类
    }
)

-- 冰柜
AddRecipe2(
    "tf_beverage_cabinet",
    { Ingredient("transistor", 8), Ingredient("gears", 1), Ingredient("cutstone", 3) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_beverage_cabinet_placer", -- 建造预览
        min_spacing = 1.5,                     -- 放置间隔
    },
    {
        "STRUCTURES", -- 建筑分类
        "CONTAINERS", -- 容器分类
        "COOKING",    -- 食物分类
    }
)

-- 蟹塘
AddRecipe2(
    "tf_crab_pond",
    { Ingredient("spoiled_food", 10), Ingredient("wateringcan", 1), Ingredient("goldenshovel", 1) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_crab_pond_placer", -- 建造预览
        min_spacing = 1,                -- 放置间隔
    },
    {
        "STRUCTURES", -- 建筑分类
        "COOKING",    -- 食物分类
        "FISHING",    -- 钓鱼分类
    }
)

-- 虾塘
AddRecipe2(
    "tf_green_shrimp_pond",
    { Ingredient("glommerfuel", 3), Ingredient("wateringcan", 1), Ingredient("goldenshovel", 1) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_green_shrimp_pond_placer", -- 建造预览
        min_spacing = 1,                        -- 放置间隔1
    },
    {
        "STRUCTURES", -- 建筑分类
        "COOKING",    -- 食物分类
        "FISHING",    -- 钓鱼分类
    }
)

-- 火锅架子
AddRecipe2(
    "tf_hot_pot_rack",
    { Ingredient("goldnugget", 10), Ingredient("twigs", 10), Ingredient("cutstone", 5), Ingredient("marble", 3) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_hot_pot_rack_placer", -- 建造预览
        min_spacing = 1.5,                 -- 放置间隔
    },
    {
        "STRUCTURES", -- 建筑分类
        "COOKING",    -- 食物分类
        "CONTAINERS", -- 容器分类
    }
)

-- 火锅灶台
AddRecipe2(
    "tf_cookpot",
    { Ingredient("goldnugget", 10), Ingredient("charcoal", 10), Ingredient("cutstone", 3), Ingredient("twigs", 6) }, -- 配方
    TECH.SCIENCE_TWO,
    {
        placer = "tf_cookpot_placer", -- 建造预览
        min_spacing = 1.5,            -- 放置间隔
    },
    {
        "STRUCTURES", -- 建筑分类
        "COOKING",    -- 食物分类
    }
)
CONSTRUCTION_PLANS.tf_cookpot = { Ingredient("opalpreciousgem", 1), Ingredient("cutstone", 10), Ingredient("goldnugget", 10), Ingredient("marble", 10) }
